<?php
class Userrule_Model_Accessleveldecision implements Userrule_Model_Mainable{
    
    public function main(array $variable = null) {
        if(!isset($_SESSION['username']) || !isset($_SESSION['access_level']) || ($_SESSION['access_level'] < 9)){
            session_destroy();
            header("Location: ".SITE_ROOT."login.html");
        }
    }
}
